 
package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.WorkOrderCcEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 *
 * @author 魏荣杰
 * @date 2019/3/30 17:21
 * @since v1.0
 * @version v1.0
 */
@Repository
@Mapper
public interface WorkOrderCcDao {

	Integer insert(WorkOrderCcEntity workOrderCc);

	Integer update(WorkOrderCcEntity workOrderCc);

	Integer deleteByKey(@Param("key") Integer key, @Param("corpid") String corpid);

	WorkOrderCcEntity getByKey(@Param("key") Integer key, @Param("corpid") String corpid);

	List<WorkOrderCcEntity> findEntitys(@Param("param") Map<String, Object> param);

	Integer getEntitysCount(@Param("param") Map<String, Object> param);

    List<Integer> getWorkOrderId(@Param("param") Map<String, Object> param);
    
    List<String> getUserIds(@Param("corpid") String corpid, @Param("workOrderId") Long workOrderId);

}